<!-- 我的步骤 -->

<template>
  <ShowSlot label="处置步骤" class="DetailEmergencyPreplan-MyStep" noMargin>
    <div class="flexCC alignCenter">
      <div class="flex2"><b>序号</b></div>
      <div class="flex28"><b>描述</b></div>
      <div class="flex6"><b>演练时长</b></div>
      <div class="flex4"><b>评分权重</b></div>
    </div>

    <div class="flexCC marginBottom" v-for="(item, i) in one.emergencyPlanStepDto" :key="item.id">
      <div class="flex2 alignCenter">{{ i + 1 }}</div>

      <ShowTextMulti :one="item" bind="stepDesc" flex28 noLabel />

      <ShowText :one="item" center flex6 noLabel>
        <span v-if="item.hour"> {{ CORE.dict(DICT.HOUR, item.hour) }}小时 </span>
        <span v-if="item.minute"> {{ CORE.dict(DICT.MINUTE, item.minute) }}分钟 </span>
      </ShowText>

      <ShowNum :one="item" bind="scoreWeight" center flex4 noLabel />
    </div>
  </ShowSlot>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyStep',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],
}
</script>

<style lang="scss">
@import 'index.scss';
</style>
